package com.dhcc.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.dhcc.entity.SysUserResource;
import org.apache.ibatis.annotations.Mapper;

import java.sql.Date;
import java.util.List;

@Mapper
public interface SysUserResourceMapper extends BaseMapper<SysUserResource> {
    SysUserResource getResourceList(String resourceId);

    SysUserResource getResourceById(String resourceId);


    Integer addResource(SysUserResource sysUserResource);

    Integer updateResource(SysUserResource sysUserResource);

    Integer deleteResource(String name, Date date, String resourceId);

    List<SysUserResource> getResourceListByParentId(String resourceId);

    List<SysUserResource> getAllResourceList();
}
